# https://gitee.com/yueyinqiu5990/codes-for-tj10053104/blob/master/supplement1/question6/main.py
import random


def _get_color(value: int) -> str:
    color = "赤橙黄绿青蓝紫"
    return color[value - 1]


def _main():
    rand = random.randint(1, 7)
    col = _get_color(rand)
    print("生成数：", rand)
    print("对应颜色：", col)


if __name__ == "__main__":
    _main()
